<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: RequestStream.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">RequestStream.h</div></div>
</div><!--header-->
<div class="contents">
<a href="RequestStream_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &lt;<a class="code" href="exports_8h.html">drogon/exports.h</a>&gt;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#include &lt;exception&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedrogon.html">drogon</a></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span>{</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="keyword">class </span>HttpRequest;</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a> = std::shared_ptr&lt;HttpRequest&gt;;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="keyword">class </span>RequestStreamReader;</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a24fc8ca3a2013fb1670c966016155d6a">   27</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a24fc8ca3a2013fb1670c966016155d6a">RequestStreamReaderPtr</a> = std::shared_ptr&lt;RequestStreamReader&gt;;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="foldopen" id="foldopen00029" data-start="{" data-end="};">
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="structdrogon_1_1MultipartHeader.html">   29</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structdrogon_1_1MultipartHeader.html">MultipartHeader</a></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span>{</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structdrogon_1_1MultipartHeader.html#a84e968bcb2e777470a79457a87e2ea10">   31</a></span>    std::string <a class="code hl_variable" href="structdrogon_1_1MultipartHeader.html#a84e968bcb2e777470a79457a87e2ea10">name</a>;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="structdrogon_1_1MultipartHeader.html#ad3d36c43dbc96d634985a1d6a4b25ce2">   32</a></span>    std::string <a class="code hl_variable" href="structdrogon_1_1MultipartHeader.html#ad3d36c43dbc96d634985a1d6a4b25ce2">filename</a>;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structdrogon_1_1MultipartHeader.html#aa62f7512e83c5f23a7165e7d9a8f8fe0">   33</a></span>    std::string <a class="code hl_variable" href="structdrogon_1_1MultipartHeader.html#aa62f7512e83c5f23a7165e7d9a8f8fe0">contentType</a>;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>};</div>
</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="foldopen" id="foldopen00036" data-start="{" data-end="};">
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="classdrogon_1_1RequestStream.html">   36</a></span><span class="keyword">class </span><a class="code hl_define" href="exports_8h.html#a00d0a001c2dd03906272e00b0598182e">DROGON_EXPORT</a> <a class="code hl_class" href="classdrogon_1_1RequestStream.html">RequestStream</a></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>{</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>  <span class="keyword">public</span>:</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="classdrogon_1_1RequestStream.html#af219ba13ec9ea9436c29f7555cf2bdc9">   39</a></span>    <span class="keyword">virtual</span> <a class="code hl_function" href="classdrogon_1_1RequestStream.html#af219ba13ec9ea9436c29f7555cf2bdc9">~RequestStream</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="classdrogon_1_1RequestStream.html#ab8bb4b85b0cd22350c8d08c10fdf4f01">   40</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1RequestStream.html#ab8bb4b85b0cd22350c8d08c10fdf4f01">setStreamReader</a>(<a class="code hl_typedef" href="namespacedrogon.html#a24fc8ca3a2013fb1670c966016155d6a">RequestStreamReaderPtr</a> reader) = 0;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>};</div>
</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a0063a17de013c124fe14cd0f13ecf593">   43</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a0063a17de013c124fe14cd0f13ecf593">RequestStreamPtr</a> = std::shared_ptr&lt;RequestStream&gt;;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span><span class="keyword">namespace </span>internal</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>{</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="namespacedrogon_1_1internal.html#a68052c30e5cc9ab1f57d5923dac9ba52">   47</a></span><a class="code hl_define" href="exports_8h.html#a00d0a001c2dd03906272e00b0598182e">DROGON_EXPORT</a> <a class="code hl_typedef" href="namespacedrogon.html#a0063a17de013c124fe14cd0f13ecf593">RequestStreamPtr</a> <a class="code hl_function" href="namespacedrogon_1_1internal.html#a68052c30e5cc9ab1f57d5923dac9ba52">createRequestStream</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a> &amp;req);</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>}</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="foldopen" id="foldopen00050" data-start="{" data-end="};">
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4">   50</a></span><span class="keyword">enum class</span> <a class="code hl_enumeration" href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4">StreamErrorCode</a></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>{</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4a35c3ace1970663a16e5c65baa5941b13">kNone</a> = 0,</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4ac9d4c82800a197b3ea4bd951dc1fb6e5">kBadRequest</a>,</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>    <a class="code hl_enumvalue" href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4a7d4c4355720e80e3e0f2636de0edade4">kConnectionBroken</a></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>};</div>
</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span> </div>
<div class="foldopen" id="foldopen00057" data-start="{" data-end="};">
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="classdrogon_1_1StreamError.html">   57</a></span><span class="keyword">class </span><a class="code hl_class" href="classdrogon_1_1StreamError.html">StreamError</a> final : <span class="keyword">public</span> std::exception</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>{</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>  <span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00060" data-start="{" data-end="}">
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="classdrogon_1_1StreamError.html#a0438a4c28cfe5c02b1f5f03418a37954">   60</a></span>    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code hl_function" href="classdrogon_1_1StreamError.html#a0438a4c28cfe5c02b1f5f03418a37954">what</a>() const noexcept<span class="keyword"> override</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>        <span class="keywordflow">return</span> message_.data();</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>    }</div>
</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span> </div>
<div class="foldopen" id="foldopen00065" data-start="{" data-end="}">
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classdrogon_1_1StreamError.html#a4634a496debb63a8d875e358f8501a22">   65</a></span>    <a class="code hl_enumeration" href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4">StreamErrorCode</a> <a class="code hl_function" href="classdrogon_1_1StreamError.html#a4634a496debb63a8d875e358f8501a22">code</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>        <span class="keywordflow">return</span> code_;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>    }</div>
</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span> </div>
<div class="foldopen" id="foldopen00070" data-start="{" data-end="}">
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="classdrogon_1_1StreamError.html#ae0a47afd9edb024d08dcc27a69f480e6">   70</a></span>    <a class="code hl_function" href="classdrogon_1_1StreamError.html#ae0a47afd9edb024d08dcc27a69f480e6">StreamError</a>(<a class="code hl_enumeration" href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4">StreamErrorCode</a> <a class="code hl_function" href="classdrogon_1_1StreamError.html#a4634a496debb63a8d875e358f8501a22">code</a>, <span class="keyword">const</span> std::string &amp;message)</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>        : message_(message), code_(<a class="code hl_function" href="classdrogon_1_1StreamError.html#a4634a496debb63a8d875e358f8501a22">code</a>)</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>    {</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>    }</div>
</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span> </div>
<div class="foldopen" id="foldopen00075" data-start="{" data-end="}">
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="classdrogon_1_1StreamError.html#ad8058d5a79e00a5c3535a8283976f9d3">   75</a></span>    <a class="code hl_function" href="classdrogon_1_1StreamError.html#ad8058d5a79e00a5c3535a8283976f9d3">StreamError</a>(<a class="code hl_enumeration" href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4">StreamErrorCode</a> <a class="code hl_function" href="classdrogon_1_1StreamError.html#a4634a496debb63a8d875e358f8501a22">code</a>, std::string &amp;&amp;message)</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>        : message_(std::move(message)), code_(<a class="code hl_function" href="classdrogon_1_1StreamError.html#a4634a496debb63a8d875e358f8501a22">code</a>)</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>    {</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>    }</div>
</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="classdrogon_1_1StreamError.html#a572f378713d7fcb3038d59db5f790d66">   80</a></span>    <a class="code hl_function" href="classdrogon_1_1StreamError.html#a572f378713d7fcb3038d59db5f790d66">StreamError</a>() = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span> </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>  <span class="keyword">private</span>:</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>    std::string message_;</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>    <a class="code hl_enumeration" href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4">StreamErrorCode</a> code_;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>};</div>
</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span> </div>
<div class="foldopen" id="foldopen00091" data-start="{" data-end="};">
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="classdrogon_1_1RequestStreamReader.html">   91</a></span><span class="keyword">class </span><a class="code hl_define" href="exports_8h.html#a00d0a001c2dd03906272e00b0598182e">DROGON_EXPORT</a> <a class="code hl_class" href="classdrogon_1_1RequestStreamReader.html">RequestStreamReader</a></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>{</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>  <span class="keyword">public</span>:</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="classdrogon_1_1RequestStreamReader.html#ad897d8c93bac7ec6802f2c9355c686fb">   94</a></span>    <span class="keyword">virtual</span> <a class="code hl_function" href="classdrogon_1_1RequestStreamReader.html#ad897d8c93bac7ec6802f2c9355c686fb">~RequestStreamReader</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="classdrogon_1_1RequestStreamReader.html#a0aedf671f073bc54a4d11c51cc7d26fd">   95</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1RequestStreamReader.html#a0aedf671f073bc54a4d11c51cc7d26fd">onStreamData</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">size_t</span>) = 0;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="classdrogon_1_1RequestStreamReader.html#a356abbf7d1289e178caab8ec0f62d99d">   96</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1RequestStreamReader.html#a356abbf7d1289e178caab8ec0f62d99d">onStreamFinish</a>(std::exception_ptr) = 0;</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span> </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="classdrogon_1_1RequestStreamReader.html#afb6b0c9414d4dbedaae206f2a12629d4">   98</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="classdrogon_1_1RequestStreamReader.html#afb6b0c9414d4dbedaae206f2a12629d4">StreamDataCallback</a> = std::function&lt;void(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">size_t</span>)&gt;;</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="classdrogon_1_1RequestStreamReader.html#a2051420740b5f8ba4444c1f2394d322d">   99</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="classdrogon_1_1RequestStreamReader.html#a2051420740b5f8ba4444c1f2394d322d">StreamFinishCallback</a> = std::function&lt;void(std::exception_ptr)&gt;;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span> </div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>    <span class="comment">// Create a handler with default implementation</span></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classdrogon_1_1RequestStreamReader.html#a0f3ab8b2e6021bcb555c25ac2b14a9a0">  102</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#a24fc8ca3a2013fb1670c966016155d6a">RequestStreamReaderPtr</a> <a class="code hl_function" href="classdrogon_1_1RequestStreamReader.html#a0f3ab8b2e6021bcb555c25ac2b14a9a0">newReader</a>(<a class="code hl_typedef" href="classdrogon_1_1RequestStreamReader.html#afb6b0c9414d4dbedaae206f2a12629d4">StreamDataCallback</a> dataCb,</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>                                            <a class="code hl_typedef" href="classdrogon_1_1RequestStreamReader.html#a2051420740b5f8ba4444c1f2394d322d">StreamFinishCallback</a> finishCb);</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span> </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>    <span class="comment">// A handler that drops all data</span></div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="classdrogon_1_1RequestStreamReader.html#a92469326681ed41bbf5f672e1fb26327">  106</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#a24fc8ca3a2013fb1670c966016155d6a">RequestStreamReaderPtr</a> <a class="code hl_function" href="classdrogon_1_1RequestStreamReader.html#a92469326681ed41bbf5f672e1fb26327">newNullReader</a>();</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span> </div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="classdrogon_1_1RequestStreamReader.html#aece1ef3f1f9fad3a4f5c73e6f4dec763">  108</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="classdrogon_1_1RequestStreamReader.html#aece1ef3f1f9fad3a4f5c73e6f4dec763">MultipartHeaderCallback</a> = std::function&lt;void(<a class="code hl_struct" href="structdrogon_1_1MultipartHeader.html">MultipartHeader</a> header)&gt;;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="classdrogon_1_1RequestStreamReader.html#a42753b30781b72f04f3b46168e9971c2">  110</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#a24fc8ca3a2013fb1670c966016155d6a">RequestStreamReaderPtr</a> <a class="code hl_function" href="classdrogon_1_1RequestStreamReader.html#a42753b30781b72f04f3b46168e9971c2">newMultipartReader</a>(</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>        <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a> &amp;req,</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>        <a class="code hl_typedef" href="classdrogon_1_1RequestStreamReader.html#aece1ef3f1f9fad3a4f5c73e6f4dec763">MultipartHeaderCallback</a> headerCb,</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span>        <a class="code hl_typedef" href="classdrogon_1_1RequestStreamReader.html#afb6b0c9414d4dbedaae206f2a12629d4">StreamDataCallback</a> dataCb,</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>        <a class="code hl_typedef" href="classdrogon_1_1RequestStreamReader.html#a2051420740b5f8ba4444c1f2394d322d">StreamFinishCallback</a> finishCb);</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>};</div>
</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span> </div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>}  <span class="comment">// namespace drogon</span></div>
<div class="ttc" id="aclassdrogon_1_1RequestStreamReader_html"><div class="ttname"><a href="classdrogon_1_1RequestStreamReader.html">drogon::RequestStreamReader</a></div><div class="ttdef"><b>Definition</b> RequestStream.h:92</div></div>
<div class="ttc" id="aclassdrogon_1_1RequestStreamReader_html_a0aedf671f073bc54a4d11c51cc7d26fd"><div class="ttname"><a href="classdrogon_1_1RequestStreamReader.html#a0aedf671f073bc54a4d11c51cc7d26fd">drogon::RequestStreamReader::onStreamData</a></div><div class="ttdeci">virtual void onStreamData(const char *, size_t)=0</div></div>
<div class="ttc" id="aclassdrogon_1_1RequestStreamReader_html_a0f3ab8b2e6021bcb555c25ac2b14a9a0"><div class="ttname"><a href="classdrogon_1_1RequestStreamReader.html#a0f3ab8b2e6021bcb555c25ac2b14a9a0">drogon::RequestStreamReader::newReader</a></div><div class="ttdeci">static RequestStreamReaderPtr newReader(StreamDataCallback dataCb, StreamFinishCallback finishCb)</div></div>
<div class="ttc" id="aclassdrogon_1_1RequestStreamReader_html_a2051420740b5f8ba4444c1f2394d322d"><div class="ttname"><a href="classdrogon_1_1RequestStreamReader.html#a2051420740b5f8ba4444c1f2394d322d">drogon::RequestStreamReader::StreamFinishCallback</a></div><div class="ttdeci">std::function&lt; void(std::exception_ptr)&gt; StreamFinishCallback</div><div class="ttdef"><b>Definition</b> RequestStream.h:99</div></div>
<div class="ttc" id="aclassdrogon_1_1RequestStreamReader_html_a356abbf7d1289e178caab8ec0f62d99d"><div class="ttname"><a href="classdrogon_1_1RequestStreamReader.html#a356abbf7d1289e178caab8ec0f62d99d">drogon::RequestStreamReader::onStreamFinish</a></div><div class="ttdeci">virtual void onStreamFinish(std::exception_ptr)=0</div></div>
<div class="ttc" id="aclassdrogon_1_1RequestStreamReader_html_a42753b30781b72f04f3b46168e9971c2"><div class="ttname"><a href="classdrogon_1_1RequestStreamReader.html#a42753b30781b72f04f3b46168e9971c2">drogon::RequestStreamReader::newMultipartReader</a></div><div class="ttdeci">static RequestStreamReaderPtr newMultipartReader(const HttpRequestPtr &amp;req, MultipartHeaderCallback headerCb, StreamDataCallback dataCb, StreamFinishCallback finishCb)</div></div>
<div class="ttc" id="aclassdrogon_1_1RequestStreamReader_html_a92469326681ed41bbf5f672e1fb26327"><div class="ttname"><a href="classdrogon_1_1RequestStreamReader.html#a92469326681ed41bbf5f672e1fb26327">drogon::RequestStreamReader::newNullReader</a></div><div class="ttdeci">static RequestStreamReaderPtr newNullReader()</div></div>
<div class="ttc" id="aclassdrogon_1_1RequestStreamReader_html_ad897d8c93bac7ec6802f2c9355c686fb"><div class="ttname"><a href="classdrogon_1_1RequestStreamReader.html#ad897d8c93bac7ec6802f2c9355c686fb">drogon::RequestStreamReader::~RequestStreamReader</a></div><div class="ttdeci">virtual ~RequestStreamReader()=default</div></div>
<div class="ttc" id="aclassdrogon_1_1RequestStreamReader_html_aece1ef3f1f9fad3a4f5c73e6f4dec763"><div class="ttname"><a href="classdrogon_1_1RequestStreamReader.html#aece1ef3f1f9fad3a4f5c73e6f4dec763">drogon::RequestStreamReader::MultipartHeaderCallback</a></div><div class="ttdeci">std::function&lt; void(MultipartHeader header)&gt; MultipartHeaderCallback</div><div class="ttdef"><b>Definition</b> RequestStream.h:108</div></div>
<div class="ttc" id="aclassdrogon_1_1RequestStreamReader_html_afb6b0c9414d4dbedaae206f2a12629d4"><div class="ttname"><a href="classdrogon_1_1RequestStreamReader.html#afb6b0c9414d4dbedaae206f2a12629d4">drogon::RequestStreamReader::StreamDataCallback</a></div><div class="ttdeci">std::function&lt; void(const char *, size_t)&gt; StreamDataCallback</div><div class="ttdef"><b>Definition</b> RequestStream.h:98</div></div>
<div class="ttc" id="aclassdrogon_1_1RequestStream_html"><div class="ttname"><a href="classdrogon_1_1RequestStream.html">drogon::RequestStream</a></div><div class="ttdef"><b>Definition</b> RequestStream.h:37</div></div>
<div class="ttc" id="aclassdrogon_1_1RequestStream_html_ab8bb4b85b0cd22350c8d08c10fdf4f01"><div class="ttname"><a href="classdrogon_1_1RequestStream.html#ab8bb4b85b0cd22350c8d08c10fdf4f01">drogon::RequestStream::setStreamReader</a></div><div class="ttdeci">virtual void setStreamReader(RequestStreamReaderPtr reader)=0</div></div>
<div class="ttc" id="aclassdrogon_1_1RequestStream_html_af219ba13ec9ea9436c29f7555cf2bdc9"><div class="ttname"><a href="classdrogon_1_1RequestStream.html#af219ba13ec9ea9436c29f7555cf2bdc9">drogon::RequestStream::~RequestStream</a></div><div class="ttdeci">virtual ~RequestStream()=default</div></div>
<div class="ttc" id="aclassdrogon_1_1StreamError_html"><div class="ttname"><a href="classdrogon_1_1StreamError.html">drogon::StreamError</a></div><div class="ttdef"><b>Definition</b> RequestStream.h:58</div></div>
<div class="ttc" id="aclassdrogon_1_1StreamError_html_a0438a4c28cfe5c02b1f5f03418a37954"><div class="ttname"><a href="classdrogon_1_1StreamError.html#a0438a4c28cfe5c02b1f5f03418a37954">drogon::StreamError::what</a></div><div class="ttdeci">const char * what() const noexcept override</div><div class="ttdef"><b>Definition</b> RequestStream.h:60</div></div>
<div class="ttc" id="aclassdrogon_1_1StreamError_html_a4634a496debb63a8d875e358f8501a22"><div class="ttname"><a href="classdrogon_1_1StreamError.html#a4634a496debb63a8d875e358f8501a22">drogon::StreamError::code</a></div><div class="ttdeci">StreamErrorCode code() const</div><div class="ttdef"><b>Definition</b> RequestStream.h:65</div></div>
<div class="ttc" id="aclassdrogon_1_1StreamError_html_a572f378713d7fcb3038d59db5f790d66"><div class="ttname"><a href="classdrogon_1_1StreamError.html#a572f378713d7fcb3038d59db5f790d66">drogon::StreamError::StreamError</a></div><div class="ttdeci">StreamError()=delete</div></div>
<div class="ttc" id="aclassdrogon_1_1StreamError_html_ad8058d5a79e00a5c3535a8283976f9d3"><div class="ttname"><a href="classdrogon_1_1StreamError.html#ad8058d5a79e00a5c3535a8283976f9d3">drogon::StreamError::StreamError</a></div><div class="ttdeci">StreamError(StreamErrorCode code, std::string &amp;&amp;message)</div><div class="ttdef"><b>Definition</b> RequestStream.h:75</div></div>
<div class="ttc" id="aclassdrogon_1_1StreamError_html_ae0a47afd9edb024d08dcc27a69f480e6"><div class="ttname"><a href="classdrogon_1_1StreamError.html#ae0a47afd9edb024d08dcc27a69f480e6">drogon::StreamError::StreamError</a></div><div class="ttdeci">StreamError(StreamErrorCode code, const std::string &amp;message)</div><div class="ttdef"><b>Definition</b> RequestStream.h:70</div></div>
<div class="ttc" id="aexports_8h_html"><div class="ttname"><a href="exports_8h.html">exports.h</a></div></div>
<div class="ttc" id="aexports_8h_html_a00d0a001c2dd03906272e00b0598182e"><div class="ttname"><a href="exports_8h.html#a00d0a001c2dd03906272e00b0598182e">DROGON_EXPORT</a></div><div class="ttdeci">#define DROGON_EXPORT</div><div class="ttdef"><b>Definition</b> exports.h:15</div></div>
<div class="ttc" id="anamespacedrogon_1_1internal_html_a68052c30e5cc9ab1f57d5923dac9ba52"><div class="ttname"><a href="namespacedrogon_1_1internal.html#a68052c30e5cc9ab1f57d5923dac9ba52">drogon::internal::createRequestStream</a></div><div class="ttdeci">DROGON_EXPORT RequestStreamPtr createRequestStream(const HttpRequestPtr &amp;req)</div></div>
<div class="ttc" id="anamespacedrogon_html"><div class="ttname"><a href="namespacedrogon.html">drogon</a></div><div class="ttdoc">Drogon Test is a minimal effort test framework developed because the major C++ test frameworks doesn'...</div><div class="ttdef"><b>Definition</b> Attribute.h:23</div></div>
<div class="ttc" id="anamespacedrogon_html_a0063a17de013c124fe14cd0f13ecf593"><div class="ttname"><a href="namespacedrogon.html#a0063a17de013c124fe14cd0f13ecf593">drogon::RequestStreamPtr</a></div><div class="ttdeci">std::shared_ptr&lt; RequestStream &gt; RequestStreamPtr</div><div class="ttdef"><b>Definition</b> RequestStream.h:43</div></div>
<div class="ttc" id="anamespacedrogon_html_a24fc8ca3a2013fb1670c966016155d6a"><div class="ttname"><a href="namespacedrogon.html#a24fc8ca3a2013fb1670c966016155d6a">drogon::RequestStreamReaderPtr</a></div><div class="ttdeci">std::shared_ptr&lt; RequestStreamReader &gt; RequestStreamReaderPtr</div><div class="ttdef"><b>Definition</b> RequestStream.h:27</div></div>
<div class="ttc" id="anamespacedrogon_html_a5200699555f98a809538342baa167aad"><div class="ttname"><a href="namespacedrogon.html#a5200699555f98a809538342baa167aad">drogon::HttpRequestPtr</a></div><div class="ttdeci">std::shared_ptr&lt; HttpRequest &gt; HttpRequestPtr</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:26</div></div>
<div class="ttc" id="anamespacedrogon_html_aeb82de311298c06b27c32eecb1829bb4"><div class="ttname"><a href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4">drogon::StreamErrorCode</a></div><div class="ttdeci">StreamErrorCode</div><div class="ttdef"><b>Definition</b> RequestStream.h:51</div></div>
<div class="ttc" id="anamespacedrogon_html_aeb82de311298c06b27c32eecb1829bb4a35c3ace1970663a16e5c65baa5941b13"><div class="ttname"><a href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4a35c3ace1970663a16e5c65baa5941b13">drogon::StreamErrorCode::kNone</a></div><div class="ttdeci">@ kNone</div></div>
<div class="ttc" id="anamespacedrogon_html_aeb82de311298c06b27c32eecb1829bb4a7d4c4355720e80e3e0f2636de0edade4"><div class="ttname"><a href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4a7d4c4355720e80e3e0f2636de0edade4">drogon::StreamErrorCode::kConnectionBroken</a></div><div class="ttdeci">@ kConnectionBroken</div></div>
<div class="ttc" id="anamespacedrogon_html_aeb82de311298c06b27c32eecb1829bb4ac9d4c82800a197b3ea4bd951dc1fb6e5"><div class="ttname"><a href="namespacedrogon.html#aeb82de311298c06b27c32eecb1829bb4ac9d4c82800a197b3ea4bd951dc1fb6e5">drogon::StreamErrorCode::kBadRequest</a></div><div class="ttdeci">@ kBadRequest</div></div>
<div class="ttc" id="astructdrogon_1_1MultipartHeader_html"><div class="ttname"><a href="structdrogon_1_1MultipartHeader.html">drogon::MultipartHeader</a></div><div class="ttdef"><b>Definition</b> RequestStream.h:30</div></div>
<div class="ttc" id="astructdrogon_1_1MultipartHeader_html_a84e968bcb2e777470a79457a87e2ea10"><div class="ttname"><a href="structdrogon_1_1MultipartHeader.html#a84e968bcb2e777470a79457a87e2ea10">drogon::MultipartHeader::name</a></div><div class="ttdeci">std::string name</div><div class="ttdef"><b>Definition</b> RequestStream.h:31</div></div>
<div class="ttc" id="astructdrogon_1_1MultipartHeader_html_aa62f7512e83c5f23a7165e7d9a8f8fe0"><div class="ttname"><a href="structdrogon_1_1MultipartHeader.html#aa62f7512e83c5f23a7165e7d9a8f8fe0">drogon::MultipartHeader::contentType</a></div><div class="ttdeci">std::string contentType</div><div class="ttdef"><b>Definition</b> RequestStream.h:33</div></div>
<div class="ttc" id="astructdrogon_1_1MultipartHeader_html_ad3d36c43dbc96d634985a1d6a4b25ce2"><div class="ttname"><a href="structdrogon_1_1MultipartHeader.html#ad3d36c43dbc96d634985a1d6a4b25ce2">drogon::MultipartHeader::filename</a></div><div class="ttdeci">std::string filename</div><div class="ttdef"><b>Definition</b> RequestStream.h:32</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
